﻿using System.Linq;
using TavDom.Library.Entities.ComplexTypes;
using TavDom.Library.Entities.Concrete;

namespace TavDom.Library.Business.Interfaces
{
    public interface IUserService
    {
        IQueryable<User> GetAll();
        IQueryable<User> GetAllWithUsers();
        User Add(User entity);
        User Get(User entity);
        User GetById(int id);
        User Update(User entity);
        void Delete(User entity);
        IQueryable<User> Search(SearchEntity<User> entity);
    }
}
